package com.shcowin.biz;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.shcowin.entity.Products;
 
 
public interface ProductsBiz<T> {
    
    public boolean add(T entity) throws DataAccessException;
    
    public boolean edit(T entity) throws DataAccessException;
    
   
    public T getById(Integer id) throws DataAccessException;
    
    public T getByName(String name) throws DataAccessException;
    
    
    public List<T> getAll() throws DataAccessException;
    
    public void del(int id) throws DataAccessException;
    
    public List<T> getByPage(int start,int size) throws DataAccessException;
    
    public int getCount() throws DataAccessException;
    
    public List<Products> getByHomeMark();
    
    public int getHomeMarkCount();
}